{extend name="base" /} {block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">新增新闻</li>
    </ul>
</div>
<!--tab标签-->
<div class="layui-tab-brief">
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" action="{:url('admin/news/save')}" data-url="{:url('admin/news/save')}" method="post" localtion-url="{:url('admin/news/index')}">
                <div class="layui-row layui-col-space15 layui-form-item">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">新闻来源</label>
                        <div class="layui-input-block">
                            <select lay-verify="required" name="news_site_id" lay-filter="location_id">
                                {volist name="sites" id="vo"}
                                <option value="{$vo.id}">{$vo.name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>


                    <div class="layui-col-md9">
                        <label class="layui-form-label">新闻标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" required lay-verify="required" autocomplete="off" class="layui-input" value="">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div>
                        <label class="layui-form-label">链接地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="url" placeholder="请填写带http://的全路径" required lay-verify="required" autocomplete="off" class="layui-input" value="">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">访问量</label>
                    <div class="layui-input-inline">
                        <input type="number" value="0" name="total_view"  autocomplete="off" class="layui-input">
                    </div>
                </div>


                <div class="btable-paged">
                    <div class="formbtngroup">
                        <button class="layui-btn layui-btn-sm" lay-submit="" type="submit" lay-filter="formadd">添加</button>
                        <button onclick="history.go(-1);return false;" class="layui-btn layui-btn-primary layui-btn-sm">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

{/block} {block name="script"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>
{/block}